home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / Emulation_Include_Files / secext.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  3.2 KB  |  135 lines

  1. /*++
  2.  
  3. Copyright (c) 1992-1998 Microsoft Corporation
  4.  
  5. Module Name: secext.h
  6.  
  7. Purpose: Security functions not part of security support provider interface.
  8.  
  9. --*/
  10.  
  11. #ifndef __SECEXT_H__
  12. #define __SECEXT_H__
  13.  
  14.  
  15. typedef struct _SecurityUserData {
  16.     SECURITY_STRING UserName;           // User name
  17.     SECURITY_STRING LogonDomainName;    // Domain the user logged on to
  18.     SECURITY_STRING LogonServer;        // Server that logged the user on
  19.     PSID            pSid;               // SID of user
  20. } SecurityUserData, * PSecurityUserData;
  21.  
  22. #define UNDERSTANDS_LONG_NAMES  1
  23. #define NO_LONG_NAMES           2
  24.  
  25.  
  26. HRESULT SEC_ENTRY
  27. GetSecurityUserInfo(
  28.     IN PLUID LogonId,
  29.     IN ULONG Flags,
  30.     OUT PSecurityUserData * UserInformation
  31.     );
  32.  
  33.  
  34.  
  35. SECURITY_STATUS SEC_ENTRY
  36. IsLogonOkay(unsigned long   fBlock);
  37.  
  38.  
  39.  
  40. //
  41. // Credential Management types and APIs
  42. //
  43.  
  44. //
  45. // SaveCredentials
  46. //
  47.  
  48. SECURITY_STATUS SEC_ENTRY
  49. SaveCredentials (
  50.     PCredHandle     pCredHandle,
  51.     unsigned long   cbCredentials,
  52.     unsigned char * pbCredentials
  53.     );
  54.  
  55.  
  56. //
  57. // GetCredentials
  58. //
  59.  
  60. SECURITY_STATUS SEC_ENTRY
  61. GetCredentials (
  62.     PCredHandle      pCredHandle,
  63.     unsigned long *  pcbCredentials,
  64.     unsigned char *  ppbCredentials
  65.     );
  66.  
  67.  
  68. //
  69. // DeleteCredentials
  70. //
  71.  
  72. SECURITY_STATUS SEC_ENTRY
  73. DeleteCredentials (
  74.     PCredHandle      pCredHandle,
  75.     unsigned long    cbKey,
  76.     unsigned char *  pbKey
  77.     );
  78.  
  79.  
  80. //
  81. // FormatCredentials
  82. //
  83.  
  84. SECURITY_STATUS SEC_ENTRY
  85. FormatCredentials(
  86.     LPWSTR          pszPackageName,
  87.     ULONG           cbCredentials,
  88.     PUCHAR          pbCredentials,
  89.     PULONG          pcbFormattedCreds,
  90.     PUCHAR *        ppbFormattedCreds);
  91.  
  92. typedef enum _SecStateDelta {
  93.     SecStateStatic,             // The state is not changing
  94.     SecStateChange,             // Req:  change state
  95.     SecStateComplete,           // Req:  complete state change
  96.     SecStateAbort,              // Req:  abort state change (revert)
  97.     SecStateChanging            // The state is changing
  98. } SecStateDelta, * PSecStateDelta;
  99.  
  100. typedef enum _SecState {
  101.     SecStateStandalone,         // Not connected to a domain
  102.     SecStateDisconnected,       // Joined, but no active connection
  103.     SecStateJoined,             // Joined, active connection
  104.     SecStateDC                  // Domain controller
  105. } SecurityState, * PSecurityState;
  106.  
  107. SECURITY_STATUS SEC_ENTRY
  108. SecChangeState(
  109.     PWSTR           pszDomainName,  // Domain (for SecStateDelta)
  110.     SecStateDelta   StateChange,    // State change type
  111.     SecurityState   State);         // State type
  112.  
  113. SECURITY_STATUS SEC_ENTRY
  114. SecQueryState(
  115.     PSecurityState  pState,
  116.     PSecStateDelta  pStateChange);
  117.  
  118. #define SECURITY_CONTROL_NAME                       L"SPMgr"
  119. #define SECURITY_CONTROL_REFRESH                    100
  120. #define SECURITY_CONTROL_UPDATE_MACHINE_JP_PROPS    101
  121. #define SECURITY_CONTROL_RELOAD_LOCAL_POLICY        102
  122.  
  123.  
  124.  
  125. //
  126. // BUGBUG: this should map a SECURITY_STATUS to an NTSTATUS, but there is
  127. // no guarantee that NTSTATUS is defined. MMS 10/38/94
  128. //
  129.  
  130. SECURITY_STATUS SEC_ENTRY
  131. MapSecurityError( SECURITY_STATUS hrValue );
  132.  
  133.  
  134. #endif // __SECEXT_H__
  135.